package com.koron.device.feign;

import com.koron.bean.base.Response;
import com.koron.bean.plan.patrol.po.PatrolEquipmentParamsPo;
import com.koron.bean.query.PageQuery;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.device.bean.po.MaintainDetailDto;
import com.koron.device.bean.po.MaintainPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author twcao
 * @title: OrderFeignService
 * @projectName GDH_EAM_V2
 * @description: 工单feign
 * @date 2022/3/118:51
 */
@FeignClient(value = "eam-service-order", fallbackFactory = FeignFallbackFactory.class)
public interface OrderFeignService {

    /***************   巡视工单   ***************/
    @GetMapping("/patrolEquipmentParams/queryPageList")
    Response<Object> queryPageList(@SpringQueryMap PatrolEquipmentParamsPo queryPo, @SpringQueryMap PageQuery pageQuery);

    @PostMapping("/maintain/insert")
    Response<Object> insert(@RequestBody MaintainPo maintain);


    @PostMapping("/maintain/insertOrUpdate")
    Response<Object> insertOrUpdate(@RequestBody MaintainDetailDto dto);
}
